package entity;

public class Member {
    private String nickname;
    private String age;
    private String phone;
    private float money;
    private pet pet;

    public Member() {
    }

    public Member(String nickname, String age, String phone, float money, entity.pet pet) {
        this.nickname = nickname;
        this.age = age;
        this.phone = phone;
        this.money = money;
        this.pet = pet;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public float getMoney() {
        return money;
    }

    public void setMoney(float money) {
        this.money = money;
    }

    public entity.pet getPet() {
        return pet;
    }

    public void setPet(entity.pet pet) {
        this.pet = pet;
    }
    public void member(){
        System.out.println("姓名"+this.nickname+"年龄"+this.age+"电话\n"+this.phone+"余额"+this.money+"购买的宠物"+this.pet);
    }
}
